﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IGolovkine.AoA.Diagnostics
{
    internal class NLoggerWrapper : ILogger
    {
        private readonly NLog.Logger _logger;
        internal NLoggerWrapper(NLog.Logger logger)
        {
            _logger = logger;
        }

        public void Debug(string format, params object[] args)
        {
            _logger.Debug(format, args);
        }

        public void DebugException(string message, Exception exception)
        {
            _logger.DebugException(message, exception);
        }

        public void Info(string format, params object[] args)
        {
            _logger.Info(format, args);
        }

        public void Trace(string format, params object[] args)
        {
            _logger.Trace(format, args);
        }

        public void Warn(string format, params object[] args)
        {
            _logger.Warn(format, args);
        }

        public void Error(string format, params object[] args)
        {
            _logger.Error(format, args);
        }

        public void Fatal(string format, params object[] args)
        {
            _logger.Fatal(format, args);
        }
    }
}
